package com.learn.rpc.common;

import java.io.Serializable;
import java.util.StringJoiner;

/**
 * @author wangxing
 * @version 2020/8/14 17:01 Administrator
 */
public class AdminUser implements Serializable {
    private static final Long serialVersionUID = 1L;
    private Integer id;
    private String name;

    public AdminUser() {
    }

    public AdminUser(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", AdminUser.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("name='" + name + "'")
                .toString();
    }
}
